package homework;
import IO.Person;

import java.io.FileInputStream;
import java.io.File;
import java.io.IOException;
import java.io.ObjectInputStream;


public class test02 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        FileInputStream fis = new FileInputStream("./qwe.obj");
        ObjectInputStream ois = new ObjectInputStream(fis);
        User s = (User)ois.readObject();
        System.out.println(s.toString());




    }
}
